﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace SmartPaginator.Extensions
{
    public static class ListExtensions
    {
        #region ItemOffset Attached Property

        public static readonly DependencyProperty ItemOffsetProperty = DependencyProperty.RegisterAttached(
            "ItemOffset",
            typeof(double),
            typeof(ListExtensions),
            new FrameworkPropertyMetadata(77.0)); // 77 =0.75 inches

        public static double GetItemOffset(DependencyObject element)
        {
            return (double)element.GetValue(ItemOffsetProperty);
        }

        public static void SetItemOffset(DependencyObject element, double value)
        {
            element.SetValue(ItemOffsetProperty, value);
        }

        #endregion
    }
}
